package Year21_Month10.Test;

import java.util.LinkedList;

public class Test {
   /*
   public ListNode reverseList(ListNode head) {
        if(null == head){
            return null;
        }
        ListNode fast = head.next;
        ListNode slow = head;
        ListNode key = null;
        while(fast.next != null){
            key = slow;
            slow = fast;
            fast = fast.next;
            slow.next = key;
        }
        fast.next = slow;
        return head;
    }
    这是关于我的链表翻转的错误代码
    */
   public static void main(String[] args) {
       LinkedList list = new LinkedList<Integer>();
       System.out.println(list.size());
       list.add(1);
       list.add(2);
       list.add(3);
       list.add(0,4);
       System.out.println(list);
   }
}
